package com.cloud.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 * @author wangjian
 * @version 1.0.0
 * @create 2020年10月27日 15:56
 * @since JDK 1.8
 * Life is so short,do something to make yourself happy,such as coding
 */
@Component
@ConfigurationProperties(prefix = "cloud")
public class CloudConfig {

    /**
     * 登录拦载器开关
     */
    public static Boolean loginInterceptorOff;

    public static Boolean getLoginInterceptorOff() {
        return loginInterceptorOff;
    }

    public void setLoginInterceptorOff(Boolean loginInterceptorOff) {
        com.cloud.config.CloudConfig.loginInterceptorOff = loginInterceptorOff;
    }

}
